package stiletto.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created with IntelliJ IDEA.
 * User: ryudaewan
 * Date: 13. 9. 15
 * Time: 오후 8:44
 * To change this template use File | Settings | File Templates.
 */
public class PropsController extends AbstractController {
    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest,
                                                 HttpServletResponse httpServletResponse) throws ServletException {
        ModelAndView mview = new ModelAndView("props");
        mview.addObject("props", System.getProperties());

        return mview;
    }
}

